.class final Lorg/microemu/cldc/file/FileSystemFileConnection$19;
.super Ljava/lang/Object;
.source "FileSystemFileConnection.java"

# interfaces
.implements Ljava/security/PrivilegedExceptionAction;


# instance fields
.field private final this$0:Lorg/microemu/cldc/file/FileSystemFileConnection;

.field private final val$byteOffset:J


# direct methods
.method constructor <init>(Lorg/microemu/cldc/file/FileSystemFileConnection;J)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 586
    iput-object p1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection$19;->this$0:Lorg/microemu/cldc/file/FileSystemFileConnection;

    iput-wide p2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection$19;->val$byteOffset:J

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()Ljava/lang/Object;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 588
    new-instance v0, Ljava/io/RandomAccessFile;

    iget-object v1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection$19;->this$0:Lorg/microemu/cldc/file/FileSystemFileConnection;

    invoke-static {v1}, Lorg/microemu/cldc/file/FileSystemFileConnection;->access$200(Lorg/microemu/cldc/file/FileSystemFileConnection;)Ljava/io/File;

    move-result-object v1

    const-string v2, "rw"

    invoke-direct {v0, v1, v2}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 590
    .local v0, raf:Ljava/io/RandomAccessFile;
    :try_start_0
    iget-wide v1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection$19;->val$byteOffset:J

    invoke-virtual {v0, v1, v2}, Ljava/io/RandomAccessFile;->setLength(J)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 592
    invoke-virtual {v0}, Ljava/io/RandomAccessFile;->close()V

    .line 594
    const/4 v1, 0x0

    return-object v1

    .line 592
    :catchall_0
    move-exception v1

    invoke-virtual {v0}, Ljava/io/RandomAccessFile;->close()V

    throw v1
.end method
